Keep things in perspective. Step back from a situation and look at it objectively.
"Don't cry because it's over, smile because it happened."
Dr. Seuss
Dr. Seuss
If you had allowed failure to deter you, you'd still be crawling on all fours.